var FW =(function(){
	var obj={width:800,height:600,url:'',title:''}
	var i=0;
	return {
		op:function(conf){
		  extend(obj,conf)
		  Lay.show({width:obj.width,height:obj.height,url:obj.url,title:obj.title});
		},
		hide:function(){
			Lay.hide();
			window.location.reload();
		},
		wopen:function(conf){
			if(conf&&conf.full){//全屏打开
				conf.height= screen.height-70;
				conf.width= screen.width-10;
			}
			extend(obj,conf)
			var na = obj.wn||'';
			//window.open (obj.url,'newwindow','height='+obj.height+',width='+obj.width+',top=0,left=0,location=no,toolbar=yes,menubar=no,scrollbars=no, resizable=yes,status=no');
			window.open (obj.url,'newwindow'+na,'height='+obj.height+',width='+obj.width+',top=0,left=0,location=no,toolbar=no,menubar=no,scrollbars=yes, resizable=yes,status=no');
		}
	}
})();

function extend(f,s){
   if((!f)||!(s))return;
   for(var p in s){
     if(s[p]){f[p] = s[p];}
   }
}
(function(){
    var tables = document.getElementsByTagName("tbody");var r = [];
    util.each(tables,function(e){if(e.className=="split") r.push(e)});
    util.each(r,function(b){
          var trs = b.getElementsByTagName("tr");
          util.each(trs,function(tr,i){
             tr.className = (i%2)==0?"ff":"f7";
             tr.onmouseover = function(){this.tmpClass=this.className; this.className = "f7show";}
             tr.onmouseout=function(){this.tmpClass&&(this.className=this.tmpClass);};
          })
    })
})();